<?php 

if(isset($goods['main_picture']) && !empty($goods['main_picture'])){
	$main_picture = $goods['main_picture'];
}else{
	//暂无图片
	$main_picture = NO_PICTURE;
}
?>
<div class="left_main_images image_view_widget">
	<div class="left_nav img_nav">
		<a href="javascript:void(0)" class="prev_btn">▲</a>
		<ul>
		<?php
		if(isset($goods['pictures']) && !empty($goods['pictures'])){
			foreach ($goods['pictures'] as $img_item){
				$magnifier = true;
				$li_options = array(
					'class'	=>'img',
					'h'		=> $img_item['height'],
					'w'		=> $img_item['width'],
				);
				if(isset($img_item['main'])){
					$li_options['class'] .= ' main selected';
				}
				$img = CHtml::image(CommonHelper::get_thumb($img_item['path'], '80x80'));
				echo CHtml::tag('li', $li_options, $img);
			}
		}else{
			echo '<li class="img no_picture">' . CHtml::image(CommonHelper::get_thumb($main_picture, '80x80')) . '</li>';
		}
		?>
		</ul>
		<a href="javascript:void(0)" class="next_btn">▼</a>
	</div>
	<div class="main_image"><?php echo CHtml::image(CommonHelper::get_thumb($main_picture, '350x350'));?></div>
</div>